package com.google.code;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Define a when method. The when method can receive a parameter if a bean with same name/alias exists.
 * 
 * @author Leopoldo Muller
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface When {

    /**
     * @return the when description
     */
    String value();
}
